package com.hy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hy.pojo.hospital.APPHospital;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AppHospitalMapper extends BaseMapper<APPHospital> {
    /**
     * 根据医院ID查询医院名称
     * @param id 医院ID
     * @return 医院名称
     */
    @Select("SELECT name FROM hospital WHERE id = #{id} ")
    String getHospitalNameById(Long id);
}
